<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<nav class="navbar navbar-expand-xl">
	<div class="container h-100">
		<a class="navbar-brand" href="../index/index.jsp">
			<h1 class="tm-site-title mb-0">宿舍管理系统</h1>
		</a>
		<button class="navbar-toggler ml-auto mr-0" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
				aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
			<i class="fas fa-bars tm-nav-icon"></i>
		</button>

		<div class="collapse navbar-collapse" id="navbarSupportedContent">
			<ul class="navbar-nav mx-auto h-100">
				<li class="nav-item">
					<a class="nav-link active" href="#">
						<i class="fas fa-tachometer-alt"></i>
						主页
						<span class="sr-only">(current)</span>
					</a>
				</li>
				<li class="nav-item dropdown">
                    <a class="nav-link" href="../room/list.do">
                        <i class="fas fa-cog"></i>
                        宿舍管理
                    </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="products.html">
						<i class="fas fa-shopping-cart"></i>
						学生管理
					</a>
				</li>

				<li class="nav-item">
					<a class="nav-link" href="accounts.html">
						<i class="far fa-user"></i>
						账号管理
					</a>
				</li>
			</ul>
			<ul class="navbar-nav">
				<li class="nav-item">
					<a class="nav-link d-block" href="../index/logout.do">
                        ${sessionScope.username }, <b>退出</b>
					</a>
				</li>
			</ul>
		</div>
	</div>

</nav>